<template>
  <div class="goodsdesc-container">
    <h3 class="title">{{info.title}}</h3>
    <div class="content" v-html="info.content"></div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      info: []
    };
  },
  methods: {
    getGoodsDesc() {
      this.$http.get("/api/goods/getdesc/" + this.id).then(result => {
        console.log(result.data.message[0]);
        this.info = result.data.message[0];
      });
    }
  },
  created() {
    this.getGoodsDesc();
  },
  props: ["id"]
};
</script>
<style lang="scss">
.goodsdesc-container {
  .content {
      img{
          width: 100%;
      }
    
  }
  .title {
    font-size: 16px;
    text-align: center;
    color: blue;
    margin: 10px 0;
  }
}
</style>